<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/el/course.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			queryLc_course();
		}
	});
})
</script>

<div class="widget" style="margin:0px;">
	<div>
		<h3 class="title" style="display:inline-block">请选择讲师</h3>
		<h3 class="title" style="float:right;">按钮说明：
			<a class="btn" href="javascript:;"><i class="icon-plus-sign"></i> 增加</a>
			<a class="btn" href="javascript:;"><i class="icon-remove-sign"></i> 删除</a>
		</h3>
	</div>
	<div class="widget-content">
		<div class="table-title">
			<form id="aidQueryForm">
				<table class="search_term_table">
					<tr>
						<th style="width: 40px;">姓名</th>
						<td style="width: 60px;"><input type="text" class="txt_organ_dName" name="realName" style="width:60px;" onkeypress="javascript: if(event.keyCode == '13') {aidQueryUser_documentInfo(); return false;}" /></td>
						<td style="text-align: right;">
							<a href="javascript:;" class="btn btn-info" onclick="javascript: queryLc_course();"><i class="icon-search"></i>&nbsp;查&nbsp;&nbsp;询&nbsp;</a>
							<a class="btn btn-info" href="javascript:;" onclick="javascript: chooseLc_course();"><i class="icon-ok"></i>选择完成</a>
						</td>
					</tr>
				</table>
			</form>
			<div>
				<div id="aidQueryResultList" style="width:60%; float:left;"></div>
				<table class="table table-bordered" style="width:35%; float:right;">
					<thead>
						<tr><th colspan="3" scope="col">已选择讲师</th></tr>
					</thead>
					<tbody id="selectedListBody">
						<#list list as l>
						<tr class="rep">
							<td>${l.ln}</td>
							<td>${l.major}</td>
							<td style="width:30px;">
								<a class="btn btn-small btn-noradius" href="javascript:;" onclick="javascript:deleteUser_course($(this));"><i class="icon-cancel-circle"></i></a>
								<input type="hidden" class="run" value="${l.code}" />
								<input type="hidden" class="un" value="${l.ln}" />
							</td>
						</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<input type="hidden" value="${(p)!''}" id="p"/>
<input type="hidden" id="old_oc" value="${(a)!''}"/>
<table id="tempTable" style="display:none;">
	<tr class="rep">
		<td class="ln"></td>
		<td class="major"></td>
		<td style="width:30px;">
		<a class="btn" href="javascript:;" onclick="javascript:deleteUser_course($(this));"><i class="icon-remove-sign"></i></a>
		<input type="hidden" class="run" value="" />
		<input type="hidden" class="un" value="" />
	</tr>
</table>